package com.douqu.game.core.e;

/**
 * Created by bean on 2017/9/15.
 * 军团连锁类型
 */
public enum E_LegionChinaType implements BaseEnum {

    ALL(0, "所有条件"),
    EQUIP_INTENSIFY(1, "装备强化"),
    EQUIP_MERGE(2, "装备合成"),
    HERO_LEVEL(3,"英雄等级"),
    HERO_QUALITY(4,"英雄品质"),
    HERO_STAR(5,"英雄星级"),
    ACCESSORY_INTENSIFY(6,"饰品等级"),
    ACCESSORY_QUALITY(7,"饰品品阶"),
    CARD_NUM(8,"卡牌数量")
    ;

    int code;

    String msg;

    E_LegionChinaType(int code, String msg)
    {
        this.code = code;
        this.msg = msg;
    }

    public static E_LegionChinaType forEnum(int code) {

        for (E_LegionChinaType chinaType : E_LegionChinaType.values()) {
            if (chinaType.code == code) {
                return chinaType;
            }
        }
        return null;
    }


    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
